<div class="page page-add-card">
  <div class="menu-tab">
    <a href="javascript:void(0)" ng-class="{active: type=='normal'}" ng-click="changeType('normal')" class="menu-item"><span class="text">储蓄卡</span></a>
    <span class="separater"></span>
    <a href="javascript:void(0)" ng-class="{active: type=='credit'}" ng-click="changeType('credit')" class="menu-item"><span class="text">信用卡</span></a>
  </div>

  <div class="content">
   <form name="cardForm" class="bhz-form">
     <div class="form-group form-group-inline username">
       <label class="label"><span class="star">*</span>姓名</label>
       <input type="text" name="fullname" class="bhz-input form-control" ng-model="card.cardHolderName" placeholder="请输入姓名" maxlength="12">
     </div>
     <div class="form-group form-group-inline">
       <label class="label"><span class="star">*</span>卡号</label>
       <input type="text" name="sms" class="bhz-input form-control" ng-model="card.pan" placeholder="请输入卡号">
     </div>

     <div class="form-group form-group-inline" ng-if="type=='credit'">
       <label class="label"><span class="star">*</span>cvv</label>
       <input type="text" name="sms" class="bhz-input form-control" ng-model="card.cvv2" placeholder="请输入cvv号">
     </div>

     <div class="form-group form-group-inline" ng-if="type=='credit'">
       <label class="label"><span class="star">*</span>有效期</label>
       <input type="text" name="sms" class="bhz-input form-control" ng-model="card.expiredDate" placeholder="过期时间mmyy">
     </div>

     <div class="form-group form-group-inline">
       <label class="label"><span class="star">*</span>身份证号</label>
       <input type="text" name="sms" class="bhz-input form-control" ng-model="card.cardHolderId" placeholder="请输入身份证号">
     </div>

     <div class="form-group form-group-sms">
       <input type="text" name="telephone" class="bhz-input form-control input-telephone" ng-model="card.phoneNO" placeholder="请输入手机号" maxlength="12">
       <div class="btn-wrap btn-inline btn-sms">
         <a href="javascript:void(0);" class="btn" ng-class="{'disabled': wating}" ng-click="getDynNum();"><span ng-show="!wating">获取短信验证码</span><span ng-show="wating"><span class="counting"></span>秒后重新发送</span></a>
       </div>
       <div class="success-info" ng-show="smsSend">短信已成功发送至{{card.phoneNo}}，请注意查收</div>
     </div>
     <div class="form-group form-group-inline">
       <label class="label"><span class="star">*</span>短信验证码</label>
       <input type="text" name="sms" class="bhz-input form-control sms_code" ng-model="card.validCode" placeholder="请输入短信验证码">
     </div>

     <div class="btn-wrap">
       <a href="javascript:void(0);" class="btn btn-submit" ng-class="{disabled: !smsSend || submitting}" ng-click="pur();">支 付</a>
     </div>
   </form>
  </div>
</div>